<?php
/**
 * EDO_ObjectsExistException
 * 
 * Carries a list of edoids
 * 
 * @package EDO
 * @subpackage Exceptions
 */
class EDO_ObjectsExistException extends Exception
{
	protected $arrObjects = Array();
	
	/**
	 * Adds a Object to class
	 *
	 * @param integer $oId
	 * @return boolean
	 */
	public function addObject($oId)
	{
		$this->arrObjects[$oId] = $oId;
		return true;
	}
	
	/**
	 * Sets the Objects array
	 *
	 * @param Array $arrEdoids An array of edoids
	 * @return boolean
	 */
	public function setObjects($arrEdoids)
	{
		foreach($arrEdoids as $eId)
		{
			$this->addObject($eId);
		}
		return true;
	}
	
	/**
	 * Accessor, returns the existing edoids in an array
	 *
	 * @return Array
	 */
	public function getObjects()
	{
		return $this->arrObjects;
	}
}